<?php
/**
 * ExtNode class file
 *
 * @author TrueSoftware B.V. (The Netherlands)
 * @link http://www.ext4yii.com
 * @copyright Copyright 2007-2010 TrueSoftware B.V. all rights reserved.
 * @license http://www.ext4yii.com/license/
 *          EVALUATION VERSION - NOT FOR COMMERCIAL USE OR DISTRIBUTION.
 * @version 0.7.2
 */

class ExtNode extends ExtNodeBase
{
    /**
     * Gets the value of ExtJS leaf property
     * @return Boolean 
     */
    public function getLeaf()
    {
    	return $this->getConfig("leaf");
    }

    /**
     * Sets the value of ExtJS leaf property
     * @param Boolean $value 
     */
    public function setLeaf($value)
    {
    	$this->setConfig("leaf",$value);
    }

    
    public function __construct()
    {
        parent::__construct();

        $this->eventtable = array_merge($this->eventtable,array(
            'append' => array('tree','sender','node','index'),
            'beforeappend' => array('tree','sender','node'),
            'beforeinsert' => array('tree','sender','node','refNode'),
            'beforemove' => array('tree','sender','oldParent','newParent','index'),
            'beforeremove' => array('tree','sender','node'),
            'insert' => array('tree','sender','node','refNode'),
            'move' => array('tree','sender','oldParent','newParent','index'),
            'remove' => array('tree','sender','node')
        ));


        $this->proptags = array_merge($this->proptags,array(
            'nodes' => true
        ));
        $this->setXType(null);
        $this->setXClass('Ext.data.Node');
    }    
}
?>